package cn.bugstack.infrastructure.persistent.dao;

import cn.bugstack.domain.strategy.model.entity.StrategyAwardEntity;
import cn.bugstack.domain.strategy.model.valobj.StrategyAwardRuleModelVO;
import cn.bugstack.infrastructure.persistent.po.StrategyAward;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 抽奖奖品表DAO接口
 */

@Mapper
public interface IStrategyAwardDao {


    List<StrategyAward> queryStrategyAwardList();

    /**
     * 根据 strategyId 查询 策略奖品 数据
     * @param strategyId
     * @return
     */
    List<StrategyAward> queryStrategyAwardListByStrategyId(Long strategyId);

    /**
     * 根据策略id和奖品id查询 规则模型rule_models
     * @param strategyAward
     * @return
     */

    String queryStrategyAwardRuleModelVO(StrategyAward strategyAward);
}
